using UnityEngine;

public class CameraFollow : MonoBehaviour
{
	public GameObject Player;

	public Vector3 offset;

	private void Update()
	{
		if (Player != null)
		{
			Transform transform = base.transform;
			Vector3 position = Player.transform.position;
			transform.position = new Vector3(Mathf.Clamp(position.x - offset.x - 2f, 0f, 14f), 0f, -10f);
		}
	}
}
